package com.test.dazuoye.service.serviceImpl;

import com.test.dazuoye.dao.ShangJiaDao;
import com.test.dazuoye.domain.shangjia;
import com.test.dazuoye.service.ShangJiaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @date 2020/6/6-21:55
 */
@Service
public class ShangJiaServiceImpl implements ShangJiaService {

    @Autowired
    private ShangJiaDao shangJiaDao;

    @Override
    public List<shangjia> findAll() {

        List<shangjia> all = shangJiaDao.findAll();
        return all;
    }

    @Override
    public void saveShangJia(shangjia shangjia) {
        shangJiaDao.saveShangJia(shangjia);
    }

    @Override
    public void deleteShangJia(String cname) {
        shangJiaDao.deleteShangJia(cname);
    }
}
